package fhp.hlhj.giantfold.adapter

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

/**
 * author: FHP
 * data: on 2017\11\24 0024 14:21
 * E-Mail: 103945089@qq.com
 */
class OrderListViewPager(fm:FragmentManager,var datas:List<Fragment>) :FragmentPagerAdapter(fm) {

    override fun getItem(position: Int): Fragment {
        return datas[position]
    }

    override fun getCount(): Int {
        return datas.size
    }
}